package com.bottle.enity;

import lombok.Data;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author: chenyuncong
 * @Date: 2020/5/8 16:19
 * token认证
 */
@Data
@Document(collection = "s_token_auth")
@CompoundIndexes({
        @CompoundIndex(name="i_jwt_out_time",def = "{'jwt' : 1, 'outTime' : -1}") //组合索引
})
public class TokenAuth {
    private String id;
    private String jwt;// jwt
    private Long outTime; //超时时间
}
